package com.mm.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.mm.BaseSupper.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author wdx
 * @since 2020-09-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mm_menu")
@ApiModel(value="MmMenu对象", description="菜单表")
public class MmMenu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单名")
    @TableField("menu_name")
    private String menuName;

    @ApiModelProperty(value = "菜单类型 0:菜单 1:按钮")
    @TableField("menu_type")
    private Integer menuType;

    @ApiModelProperty(value = "菜单图标")
    @TableField("menu_Icon")
    private String menuIcon;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private String sort;

    @ApiModelProperty(value = "父级ID")
    @TableField("pid")
    private Integer pid;

    @ApiModelProperty(value = "是否有子节点")
    @TableField(exist = false)
    private Boolean hasChildren;


    public static final String MENU_NAME = "menu_name";

    public static final String MENU_TYPE = "menu_type";

    public static final String SORT = "sort";

    public static final String PID = "pid";

}
